
/*
  环境配置
*/

const env = import.meta.env.MODE || 'prod'

const EnvConfig = {
  dev: {
    baseApi: '/api/',
    mockApi: '/api',
    // mockApi: 'https://www.fastmock.site/mock/5d47e9309e9f627669d3835cb14d9504/api',
    // mockApi: 'https://www.fastmock.site/mock/c1c302e8baed9894c48c17e4738c092e/api'
  },
  test: {
    baseApi: '/',
    // mockApi: 'https://www.fastmock.site/mock/5d47e9309e9f627669d3835cb14d9504/api',
    mockApi: 'https://www.fastmock.site/mock/c1c302e8baed9894c48c17e4738c092e/api'
  },
  prod: {
    baseApi: '/',
    mockApi: '',
  }
}

export default {
  env: env,
  mock: false,
  namespace: 'manger',
  ...EnvConfig[env]
}